package com.cyt.servlet;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.cyt.dao.impl.GongShiDaoImpl;
import com.cyt.entity.GongShi;

//调用公司信息的实现类  页脚
public class FootServlet extends HttpServlet {
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		GongShiDaoImpl cDao= new GongShiDaoImpl();//创建对象
	    GongShi g=cDao.getGongShi();//调用方法获得用户集合
	    request.setAttribute("g", g);
		request.getRequestDispatcher("foot.jsp").include(request, response);
	}

	
	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		doGet(request, response);
	}

}
